package com.bootdo.order.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 订单表
 *
 * @author chglee
 * @email 1992lcg@163.com
 * @date 2018-02-02 17:39:58
 */
@Entity
@Table(name = "biz_order")
public class OrderDO implements Serializable {
    private static final long serialVersionUID = 1L;

        //
        @Id
    @GeneratedValue
        @Column(name = "id")
    private Long id;
        //总价
        @Column(name = "original_cost")
    private BigDecimal originalCost;
        //优惠
        @Column(name = "discount")
    private BigDecimal discount;
        //实际价
        @Column(name = "fact_cost")
    private BigDecimal factCost;
        //0未付款，1已付款，3取消
        @Column(name = "status")
    private Integer status;
        //付款方式
        @Column(name = "pay_method")
    private String payMethod;
        //用户id
        @Column(name = "user_id")
    private Long userId;
        //货架id
        @Column(name = "storage_rack_id")
    private Long storageRackId;
        //编码
        @Column(name = "code")
    private String code;
        //创建时间
        @Column(name = "gtm_create")
    private Date gtmCreate;
        //修改时间
        @Column(name = "gtm_modified")
    private Date gtmModified;
    
        /**
    * 设置：
    */
    public void setId(Long id) {
       this.id = id;
    }

    /**
    * 获取：
    */
    public Long getId() {
            return id;
        }
        /**
    * 设置：总价
    */
    public void setOriginalCost(BigDecimal originalCost) {
       this.originalCost = originalCost;
    }

    /**
    * 获取：总价
    */
    public BigDecimal getOriginalCost() {
            return originalCost;
        }
        /**
    * 设置：优惠
    */
    public void setDiscount(BigDecimal discount) {
       this.discount = discount;
    }

    /**
    * 获取：优惠
    */
    public BigDecimal getDiscount() {
            return discount;
        }
        /**
    * 设置：实际价
    */
    public void setFactCost(BigDecimal factCost) {
       this.factCost = factCost;
    }

    /**
    * 获取：实际价
    */
    public BigDecimal getFactCost() {
            return factCost;
        }
        /**
    * 设置：0未付款，1已付款，3取消
    */
    public void setStatus(Integer status) {
       this.status = status;
    }

    /**
    * 获取：0未付款，1已付款，3取消
    */
    public Integer getStatus() {
            return status;
        }
        /**
    * 设置：付款方式
    */
    public void setPayMethod(String payMethod) {
       this.payMethod = payMethod;
    }

    /**
    * 获取：付款方式
    */
    public String getPayMethod() {
            return payMethod;
        }
        /**
    * 设置：用户id
    */
    public void setUserId(Long userId) {
       this.userId = userId;
    }

    /**
    * 获取：用户id
    */
    public Long getUserId() {
            return userId;
        }
        /**
    * 设置：货架id
    */
    public void setStorageRackId(Long storageRackId) {
       this.storageRackId = storageRackId;
    }

    /**
    * 获取：货架id
    */
    public Long getStorageRackId() {
            return storageRackId;
        }
        /**
    * 设置：编码
    */
    public void setCode(String code) {
       this.code = code;
    }

    /**
    * 获取：编码
    */
    public String getCode() {
            return code;
        }
        /**
    * 设置：创建时间
    */
    public void setGtmCreate(Date gtmCreate) {
       this.gtmCreate = gtmCreate;
    }

    /**
    * 获取：创建时间
    */
    public Date getGtmCreate() {
            return gtmCreate;
        }
        /**
    * 设置：修改时间
    */
    public void setGtmModified(Date gtmModified) {
       this.gtmModified = gtmModified;
    }

    /**
    * 获取：修改时间
    */
    public Date getGtmModified() {
            return gtmModified;
        }
    }
